package cate.common.table.pvp.eliterace.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;
import org.apache.commons.lang3.StringUtils;

@NoteClass(value = "冠军赛排行榜奖励")
public class EliteRaceRewardRow extends ERow {
    @NoteField(value = "名次开始")
    public int begin;

    @NoteField(value = "名次结束")
    public int end;

    @NoteField(value = "奖励")
    public String rewardStr;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", 0);
        this.begin = xrw.getInteger("名次开始", 0);
        this.end = xrw.getInteger("名次结束", 0);
        this.rewardStr = xrw.getString("奖励");
    }
}
